package com.xyoto.community.service;

import com.xyoto.community.dto.GetQuestionCommentDTO;
import com.xyoto.community.dto.SaveQuestionCommentDTO;
import com.xyoto.community.utils.PageUtils;
import com.xyoto.community.utils.Result;
import com.xyoto.community.vo.QuestionCommentsVo;

/**
 * 问答评论service
 */
public interface QuestionCommentService {

    /**
     * 新增问答评论
     * @param dto
     * @return
     */
    Result saveQuestionComment(SaveQuestionCommentDTO dto);

    /**
     * 根据问答id分页查询问答评论列表
     *
     * @param queryDto 分页查询问答评论列表DTO
     *
     * @return Result<PageUtils<QuestionCommentsVo>>
     */
    Result<PageUtils<QuestionCommentsVo>> getQuestionCommentsListById(GetQuestionCommentDTO queryDto);

    /**
     * 删除问答评论
     * @param questionCommentId 问答评论id
     * @return
     */
    Result removeQuestionComment(Integer questionCommentId);
}
